#include "../header/ClientWIndow.h"
#include <qhostaddress.h>
ClientWindow::ClientWindow(QWidget* parent) :QMainWindow(parent)
{
	client = NULL;
	ui.setupUi(this);
}
void ClientWindow::Receive(Client* _client)
{
	client = _client;
	ui.IPLE->setText(client->client->peerAddress().toString());
}
void ClientWindow::on_ControlButton_clicked()
{
	client->client->write("control request");
}
void ClientWindow::on_DisconnectButton_clicked()
{

}